@import '~@styles/common.less';

.MSegmented {
  position: relative;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  padding: 2px 2px;
  background-color: @menu-hover;
  border-radius: 5px;

  .tag {
    position: relative;
    display: inline-block;
    padding: 3px 5px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 2;

    &:hover {
      color: @menu-active;
    }
  }

  .activeTag {
    position: absolute;
    left: 0;
    top: 0;
    height: 30px;
    background-color: @fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    z-index: 1;
  }
}

@media screen and (max-width: 960px) {
  .MSegmented {
    display: flex;
    flex-wrap: nowrap;
    justify-content: stretch;
    width: 1066px;

    .tag {
      width: 66px;
      min-width: 66px;
    }
  }
}
